/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* All pages */

body {
  font-family: arial, sans-serif;
  font-size: 13px;
  margin: auto;
  width: 800px;
  max-width: 1000px;
  padding: 15px;
}

.logo {
  border: none;
}

.error {
  color: #f00;
  padding: 2em;
  margin: 2em;
  border: 1px solid #f00;
  background: #ffe;
}

.info {
  color: #000;
  padding: 2em;
  margin: 2em;
  border: 1px solid green;
}

.deactivation {
  margin: 2em 1em;
}

input {
  font-family: arial, sans-serif;
  font-size: 13px;
}

h1 {
  margin-top: 0.5em;
  font-size: 18px;
}

h2 {
  font-size: 15px;
  margin: 2em 0 1em;
}

h3 {
  font-size: 13px;
  font-weight: bold;
  margin: 0;
}

form {
  margin: 0;
}

.mandatory {
  color: #f00;
}

.hint {
  font-weight: normal;
  color: #888;
  font-size: 11px;
}

table.fields {
  margin-left: 3em;
}

tr {
  vertical-align: baseline;
}

tr.columns {
  vertical-align: top;
}

td.person.list {
  padding-left: 0px;
}

td.note.list {
  padding-left: 20px;
}

td.label {
  text-align: right;
  width: 12em;
}

td.photo .label {
  white-space: nowrap;
  width: 1em;
  padding-left: 0;
  cursor: pointer;
}

td.photo .radio {
  vertical-align: middle;
}

th, td {
  padding: 0px 4px;
  text-align: left;
}

.tracking, .note .contents div.tracking {
  font-size: 9px;
  color: #888;
  text-align: right;
}

table.person tr.photo {
  vertical-align: top;
}

tr.text, tr.other, tr.location {
  vertical-align: top;
}

table.main {
   border-spacing: 24px;
}

td.submit {
  text-align: left;
}

.important {
  font-weight: bold;
}

.custom-message {
  width: 500px;
  margin: 1em 0;
}

.clear {
  clear: both;
}

/* Footer */

.disclaimer {
  margin: 1em 0;
}

.footer {
  margin: 1em auto;
  text-align: center;
}

.logo_footer {
  margin: 1em 0;
  text-align: center;
}

/* Main page */

.main {
  font-size: 16px;
}

.main .instructions {
  text-align: center;
}

.main .stats {
  font-size: 13px;
  text-align: center;
}

.main .action {
  width: 12em;
  padding: 1em;
  border: 1px solid #abe;
  background: #bcf;
  font-weight: bold;
  text-align: center;
}

.main .action:first-child {
  border: 1px solid #ad9;
  background: #bea;
}

/* Query page */

.query .instructions {
  padding: 1em 0;
}

.query .label {
  width: 6em;
  white-space: nowrap;
}

.query .submit {
  padding-top: 1em;
}

/* View page */

.view tr.columns td.column {
  min-width: 250px;
}

.view table.fields {
  margin-left: 0em;
}

.view table.fields .field {
  background-color: #f8f8f8;
  min-width: 5em;
}

img.photo {
  max-width: 250px;
  max-height: 250px;
  border: none;
}

.view.note {
  margin: 1em 0;
  background: #e8e8e8;
  padding: 4px;
}

.view.note .source {
  padding-left: 4px;
  color: #888;
}

.note .author {
  font-weight: bold;
  color: #000;
}

.note .author.unknown {
  font-weight: normal;
  color: #888;
}

.view.note .contact {
  font-size: 11px;
  color: #888;
}

.note .contents {
  background: #f8f8f8;
  padding: 4px;
  margin-top: 4px;
}

.note .contents div, .map-container {
  font-size: 11px;
  color: #666;
}

div.map {
  margin-top: 0.5em;
}

.view table.column {
  background: #e8e8e8;
  padding: 4px 0 1px;
  border-right: 12px solid #fff;
}

.view table.note.column {
  border-right: none;
}

.view .section {
  padding: 0.5em;
  background: #f8f8f8;
  border-bottom: 4px solid #e8e8e8;
}

.view .field {
  font-weight: bold;
}

.note .contents div.translation {
  margin-top: 8px;
  font-style: italic;
  font-size: 13px;
  color: #66c;
}

/* Multi-View page */

table.multiview {
  background-color: #e8e8e8;
}

.multiview table.column {
  background: #e8e8e8;
  padding: 4px 0 1px;
  border: none;
}

.multiview .label {
  white-space: nowrap;
}

.multiview .field {
  background-color: #f8f8f8;
  min-width: 5em;
  border-left: 2px solid #e8e8e9;
}

.multiview .sectiontop {
  padding: 0.5em;
  background: #f8f8f8;
}

tr.sectionbottom td {
  padding-bottom: 0.5em;
  border-bottom: 4px solid #e8e8e8;
}

/* Create page */

.create table.column, table.create.column {
  background: #c0d0ff;
  padding: 4px 0 1px;
  border-right: 12px solid #fff;
}

table.column h2, table.view h2 {
  margin: 2px 0 6px;
  padding-left: 6px;
}

.create td.submit {
  padding: 4px;
}

label.option {
  font-weight: bold;
}

.create .section {
  padding: 0.5em;
  background: #f0f4ff;
  border-bottom: 4px solid #c0d0ff;
}

.source .instructions {
  padding-top: 1em;
  padding-bottom: 1em;
}

div.languages {
  float: right;
  width: 350px;
}

div.languages .selected {
  font-weight: bold;
}

div.languages a {
  white-space: nowrap;
}

/* results page */

img.resultImage {
  width: 80px;
  max-width: 80px;
  max-height: 80px;
}

resultsList {
  width: 100%
}

a img {
  border: none;
}

.duplicate-checkbox {
  margin: 4px 6px 2px 2px;
}

#dup_form, #dup_form form {
  margin: 1em 0;
}

.result-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.searchResults {
  list-style: none;
  margin: 0;
  padding: 0;
}

.searchResults .result-link:hover {
  background: #cdf;
}

.searchResults .resultDataPersonFound {
  background: lightGreen;
}

.searchResults .resultImageContainer {
  float: left;
}

.searchResults .result-link {
  padding: 5px;
  overflow: hidden;
}

.searchResults .resultDataTitle {
  color: #00e;
  font-size: 130%;
  font-weight: bold;
  text-decoration: underline;
}

.searchResults .resultData {
  margin-left: 100px; /* 80px for image + 20px gutter */
}

.searchResults .resultImageContainer,
.searchResults .resultData,
.searchResults .resultDataTitle,
.searchResults .tracking {
  display: block;
}

.searchResults .tracking {
  text-align: right;
}

/* embedding instructions */
div.embed pre {
  margin-left: 2em;
  padding: 0.5em;
  background: #eee;
  border: 1px solid #ddd;
}

/* variables in sample code or URLS */
span.var {
  font-style: italic;
  color: green;
}

.hidden {
  display: none;
}

.warning {
  color: red;
  font-weight: bold;
}

/* forms on the admin page */

form.admin fieldset {
  border: 1px solid #888;
  margin: 24px 6px;
  padding: 6px;
}

form.admin legend {
  font-weight: bold;
}

form.admin .config {
  margin: 12px 2px;
}

form.admin input#subdomain_new {
  font-family: courier, monospace;
  font-size: 14px;
  text-align: right;
}

form.admin .config .response {
  margin-left: 4em;
}

form.admin .config input, form .config textarea, form code {
  font-family: courier, monospace;
  font-size: 14px;
}

form.admin .option label {
  width: 20em;
}

.subscribe_email_error {
  color: #f00;
}

/* review page */

table.review {
  border-collapse: collapse;
  font-size: 11px;
}

table.review th, table.review td {
  border: 1px solid #ccc;
  padding: 4px 4px;
}

table.review th {
  font-weight: normal;
}
  
table.review th.colgroup {
  font-size: 10px;
  text-transform: uppercase;
  color: #fff;
}

table.review th.person.colgroup {
  background: #5582dd;
}

table.review th.note.colgroup {
  background: #555;
}

table.review .person, table.review .person a, table.review .person a:visited {
  color: #04c;
}

table.review td.empty {
  text-align: center;
  border: none;
}

table.review td.caret, table.review td.checkbox {
  padding: 2px 0;
  border-left: none;
  border-right: none;
}

table.review td.date {
  white-space: nowrap;
}

table.review td.statuses {
  font-family: monospace;
}

table.review .email {
  color: #a66;
}

table.review .no-email {
  color: #aaa;
}

table.review .entry-date {
  color: #aaa;
}

/* dashboard page */

table.counts {
  border-collapse: collapse;
}

table.counts th, table.counts td {
  padding: 4px 8px;
  border: 1px solid #aaa;
}

table.counts th {
  text-align: left;
  font-weight: bold;
}

table.counts td {
  text-align: right;
}
